package com.run.motion.service.impl;

import com.run.motion.entity.FoodType;
import com.run.motion.mapper.FoodTypeMapper;
import com.run.motion.service.IFoodTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author tyx-qchk
 * @date 2022/12/2 11:01
 */
@Service
public class FoodTypeServiceImpl implements IFoodTypeService {
    @Autowired
    private FoodTypeMapper foodTypeMapper;
    @Override
    public FoodType selectFoodTypeById(String id) {
        return foodTypeMapper.selectFoodTypeById(id);
    }

    @Override
    public List<FoodType> selectFoodTypeList() {
        return foodTypeMapper.selectFoodTypeList();
    }

    @Override
    public int insertFoodType(FoodType foodType) {
        return foodTypeMapper.insertFoodType(foodType);
    }

    @Override
    public int updateFoodType(FoodType foodType) {
        return foodTypeMapper.updateFoodType(foodType);
    }

    @Override
    public int deleteFoodTypeById(String id) {
        return foodTypeMapper.deleteFoodTypeById(id);
    }

    @Override
    public int deleteFoodTypeByIds(String[] ids) {
        return foodTypeMapper.deleteFoodTypeByIds(ids);
    }
}
